package com.eboss2.sbs.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.eboss2.sbs.R;
import com.eboss2.sbs.activity.base.BaseActivity;
import com.mytools.tool.activityManager.MyActivityManager;


public class MyDeviceItemDetailActivity extends BaseActivity implements View.OnClickListener{




	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		mContext = this;
		setContentView(R.layout.activity_my_device_detail);
		MyActivityManager.getInstance().addActivity(this);
		initView();
	}

	private void initView(){
		showView(R.id.titleback_btn_back, true);
		setTvText(R.id.tv_title, "收银设备管理");
		setTvText(R.id.next_sure, "故障报修");
		textView(R.id.next_sure).setTextSize(13);
		findViewById(R.id.next_sure).setOnClickListener(this);
		findViewById(R.id.titleback_btn_back).setOnClickListener(this);

		relativeLayout(R.id.rl_pwd).setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View view) {
				startActivity(new Intent(mContext, ActivityEditLoginPwd.class));
			}
		});





	}




	private void getdata(){
//		Map<String, Object> params = new HashMap<String, Object>();
////		params.put("sid", mApp.getLoginEntity().getSid());
////		String key = getTvText(R.id.tv_search_key);
////		if(!StringUtil.isNull(key)){params.put("key", key);}
////		else{params.put("key", "");}
//		params.put("pagenum", page);
//		params.put("pagesize", rows);
//		API.http_post(this, API.COUPON_LIST, params, new HttpCallback<CouponListEntity>(this) {
//			@Override
//			public void onSuccess(int statusCode, CouponListEntity data) {
//				if(data!=null){
//					List<CouponEntity> tmp_datas = data.getCoupons();
//					if(tmp_datas==null||tmp_datas.size()==0||tmp_datas.size()<rows){
//						if(tmp_datas==null||tmp_datas.size()==0){
//							toast("没有更多数据");
//						}
//						pullToRefreshScrollView.setMode(PullToRefreshBase.Mode.PULL_DOWN_TO_REFRESH);
//					}
//					if(tmp_datas!=null&&tmp_datas.size()>0){
//						datas.addAll(tmp_datas);
//					}
//				}
//				boolean no_datas = (datas==null||datas.size()==0);
//				showView(R.id.eva_nodata, no_datas);
//				showView(R.id.listview, !no_datas);
//				adapter.notifyDataSetChanged();
//				pullToRefreshScrollView.onRefreshComplete();
//			}
//
//			@Override
//			public void onFailure(int code, String message) {
//				pullToRefreshScrollView.onRefreshComplete();
//				super.onFailure(code, message);
//
//			}
//
//			@SuppressWarnings({ "unchecked", "rawtypes" })
//			@Override
//			public TypeToken getTypeToken() {
//				return new TypeToken<CouponListEntity>() {
//				};
//			}
//		});
	}





	@Override
	public void onClick(View v) {
		switch (v.getId()) {
			case R.id.titleback_btn_back:
				finish();
				break;

			default:break;
		}
	}




}
